[Unit]
Description=Docker Application Container Engine
Documentation=http://docs.docker.com
After=docker.socket network.target
Requires=docker.socket

[Service]
Type=notify
Environment="DOCKER_CLUSTER_STORE=--cluster-store={{ etcd_endpoint }}"

ExecStart=/usr/bin/dockerd -H fd:// \
  $DOCKER_OPTS $DOCKER_CLUSTER_STORE

ExecReload=/bin/kill -s HUP $MAINPID

LimitNOFILE=1048576
LimitNPROC=infinity
LimitCORE=infinity
TasksMax=infinity
TimeoutStartSec=0
Delegate=yes

[Install]
WantedBy=multi-user.target